import type { App } from 'vue'
import selectAll from './modules/selectAll'

// 所有指令统一在这里定义
const directivesList: Record<string, any> = {
  selectAll,
}

// 安装函数（在 main.ts 里全局注册）
export default {
  install(app: App) {
    Object.keys(directivesList).forEach((key) => {
      app.directive(key, directivesList[key])
    })
  },
}
